package net.fenghaitao.enums;

import lombok.Getter;

public enum AggregateType {
    /**
     * 统计类型
     */
    NONE("", ""),
    SUM("SUM(%1$s%2$s:%1$s%3$s)", "SUM(%1$s%2$s:%3$s%2$s)"),
    AVG("AVERAGE(%1$s%2$s:%1$s%3$s)", "AVERAGE(%1$s%2$s:%3$s%2$s)"),
    ;

    @Getter
    private String aggregateFormulaByDown;
    @Getter
    private String aggregateFormula;

    AggregateType(String aggregateFormulaByDown, String aggregateFormula) {
        this.aggregateFormulaByDown = aggregateFormulaByDown;
        this.aggregateFormula = aggregateFormula;
    }
}